Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XOR feedback for Kaija - went through the analyses #91

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xortizross
Copy link
Contributor

Added what I would have done and some questions. Overall I didn't come up with any big issues, although the whole thing doesn't feel right? Are we going about this the right way? I did find a discrepancy with the proportions.

@kaijagahm You don't need to approve the pull, but this gives you a chance to review it?

Added what I would have done and some questions. Overall I didn't come up with any big issues, although the whole thing doesn't feel right? Are we going about this the right way? I did find a discrepancy with the proportions
@xortizross xortizross requested a review from kaijagahm December 12, 2024 21:19
Copy link

github-actions bot commented Dec 12, 2024

Thank you!

Thank you for your pull request 😃

🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

  • 🎯 correct output
  • 🖼️ correct figures
  • ❓ new warnings
  • ‼️ new errors

Rendered Changes

🔍 Inspect the changes: https://github.com/carpentries-incubator/R-help-reprexes/compare/md-outputs..md-outputs-PR-91

The following changes were observed in the rendered markdown documents:

 .DS_Store                      |  Bin 6148 -> 6148 bytes
 4-minimal-reproducible-code.md |   55 ++
 config.yaml (new)              |   81 +++
 md5sum.txt                     |    2 +-
 renv.lock (new)                | 1092 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 1229 insertions(+), 1 deletion(-)
What does this mean?

If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible.

This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

⏱️ Updated at 2024-12-12 21:21:13 +0000

github-actions bot pushed a commit that referenced this pull request Dec 12, 2024
@peterlaurin peterlaurin self-requested a review December 17, 2024 20:44
@kaijagahm kaijagahm added the episode:reproducible code Issues related to episode 5. Minimal Reproducible Code label Dec 29, 2024
@@ -128,6 +128,14 @@ counts_per_day <- krats %>%
group_by(year, plot_id, plot_type, month, day, species_id) %>%
summarize(count_per_day = n())

### ***EDIT-start *** ###

# --> Why doesn't this use "date" like we had set up earlier?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point--I don't remember when we set up date, and I should definitely go back and use that. Will keep in mind this continuity point for future.

### ***EDIT-start *** ###

# --> Why doesn't this use "date" like we had set up earlier?
# --> Is per day even the best way to do it? This isn't even average per day, just total per day.... Doesn't seem right
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you expand on what you mean by "doesn't seem right"? My goal here was to calculate the total number of individuals caught per day, so that then I could use boxplots to see the general range of how many individuals tended to be caught on a given day in each plot.

ggplot(aes(x=plot_type, y=count_per_day, fill=species_id)) +
geom_boxplot()

# what is the group=interaction() adding?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right that this is not necessary. Anyway in the new episode I've simplified this part of the analysis considerably, so it becomes moot!


# what is the group=interaction() adding?

# I feel like we need to figure out what these exclosures are doing and if it's an over-time kinda thing then that needs to be accounted for. This just doesn't look right to me?
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely. I was trying to keep the questions reeeeeealllly simple here because we just don't have the space to dive into investigating the biological dynamics in a lot of detail. We can discuss changing the research question to a more temporal one if you think that would be more easily understandable to illustrate the problems!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just thinking we should double-check what the exclosures were doing within the time frame we are looking at, because if they originally weren't exclosures then of course they weren't working, which could be a nugget that we add later too. I just want to make sure we get the biological interpretation of the data right, if that makes sense? And to make sure there is continuity across the episodes. I don't remember what didn't look right right now, I'll look at it again in the rendered version

@@ -147,6 +196,12 @@ prop_spectab <- control_spectab %>%
mutate(prop = total_count/sum(total_count)) %>%
filter(species_id == "DS") # keep only spectabilis

### **EDIT-start ###

# these proportions don't look right to me... not in the way that I was thinking about them at least...
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what you mean by not right? How were you thinking about them?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HA! That's hilarious, a thoroughly unhelpful comment on my part, I think I was thinking "let's discuss at our next meeting." I don't really remember right now without looking at it... Let me see if it makes sense when I look at the rendered website and if not remind me to get back to it! I think it was a question of how the proportions were being calculated compared to what I had done... I need to look at the outputs again

@xortizross xortizross changed the title Went through the code XOR feedback for Kaija - went through the analyses Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
episode:reproducible code Issues related to episode 5. Minimal Reproducible Code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants